package com.jiaertangshi.jiaer.dto;

import java.io.Serializable;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler" })
@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
public class Tbill implements Serializable{
	
    private Integer id;

    private String billNo; //订单编号

    private BigDecimal consumeAmount; //消费金额

    private String billPatn;//消费模式 (分为单点还是堂食)
    
    private String payMethod;//付款方式(分为 1微信支付，2余额支付，3奖金支付)

    private String billState;//订单状态(0为未付款,1为已付款)

    private BigDecimal billingRatio;//结算比例(这里从)

    private BigDecimal payAmount; //付款金额

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date commitDate; //下单时间
    
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date payDate; //付款时间

    private String billMark; //订单备注

    private Boolean dataStatus; //数据状态

    private Integer userid;//点餐人的id

    private Integer shopid;  //点餐商家id

    private Date createdAt; //创建时间

    private Date updatedAt; //更新时间
    
    //这里加入一个查询的数据
    private List<Torder> toders; //一个订单对应一个list的订单详情
    
    private String shopname;//店铺名字
    
    private String shopimg; //店铺图片
    

    public String getShopimg() {
		return shopimg;
	}

	public void setShopimg(String shopimg) {
		this.shopimg = shopimg;
	}

	public String getShopname() {
		return shopname;
	}

	public void setShopname(String shopname) {
		this.shopname = shopname;
	}

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBillNo() {
        return billNo;
    }

    public void setBillNo(String billNo) {
        this.billNo = billNo == null ? null : billNo.trim();
    }

    public BigDecimal getConsumeAmount() {
        return consumeAmount;
    }

    public void setConsumeAmount(BigDecimal consumeAmount) {
        this.consumeAmount = consumeAmount;
    }

    public String getBillPatn() {
        return billPatn;
    }

    public void setBillPatn(String billPatn) {
        this.billPatn = billPatn == null ? null : billPatn.trim();
    }

    public String getPayMethod() {
        return payMethod;
    }

    public void setPayMethod(String payMethod) {
        this.payMethod = payMethod == null ? null : payMethod.trim();
    }

    public String getBillState() {
        return billState;
    }

    public void setBillState(String billState) {
        this.billState = billState == null ? null : billState.trim();
    }

    public BigDecimal getBillingRatio() {
        return billingRatio;
    }

    public void setBillingRatio(BigDecimal billingRatio) {
        this.billingRatio = billingRatio;
    }

    public BigDecimal getPayAmount() {
        return payAmount;
    }

    public void setPayAmount(BigDecimal payAmount) {
        this.payAmount = payAmount;
    }

    public Date getCommitDate() {
        return commitDate;
    }

    public void setCommitDate(Date commitDate) {
        this.commitDate = commitDate;
    }

    public Date getPayDate() {
        return payDate;
    }

    public void setPayDate(Date payDate) {
        this.payDate = payDate;
    }

    public String getBillMark() {
        return billMark;
    }

    public void setBillMark(String billMark) {
        this.billMark = billMark == null ? null : billMark.trim();
    }


	public Boolean getDataStatus() {
		return dataStatus;
	}

	public void setDataStatus(Boolean dataStatus) {
		this.dataStatus = dataStatus;
	}

	public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Integer getShopid() {
        return shopid;
    }

    public void setShopid(Integer shopid) {
        this.shopid = shopid;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

	public List<Torder> getToders() {
		return toders;
	}

	public void setToders(List<Torder> toders) {
		this.toders = toders;
	}
    
}